package com.z100h.supplychain.workflow.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.z100h.supplychain.workflow.entity.ActComment;
import com.z100h.supplychain.workflow.entity.vo.ActCommentVO;
import com.z100h.supplychain.workflow.mapper.ActCommentMapper;
import com.z100h.supplychain.workflow.service.ActCommentService;

@Service
@Transactional(readOnly = true)
public class ActCommentServiceImpl implements ActCommentService {

	@Autowired
	private ActCommentMapper actCommentMapper;

	@Override
	@Transactional(readOnly = false)
	public void addActComment(ActComment actComment) {
		actCommentMapper.addActComment(actComment);
	}

	@Override
	public List<ActCommentVO> findAllActComment(Map<String, String> stringMap) {

		return actCommentMapper.findAllActComment(stringMap);
	}
}